from business.account import Account
from business.base import Base
from common.address import UserUrl
from common.public_variable import headers


class User(Base):
    def user_accountLog(self,source,type = None):
        params = {
            "source":source,
            "type":type
        }
        return self.send_requests('get',UserUrl.UserAccountLogUrl,params=params)


    def user_center(self):
        return self.send_requests('get',UserUrl.UserCenterUrl)
if __name__ == '__main__':
    resbody = Account().account_login()[1]
    headers['token'] = resbody['data']['token']
    # print(headers)
    print(User().user_accountLog(1))